﻿import StudentInfoDetail from "@/pages/StudentMessage/StudentInfoDetail";

export default [
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BlankLayout',
        routes: [
          {
            path: '/User',
            component: '../layouts/UserLayout',
            routes: [
              {
                path: '/User/login',
                name: 'login',
                component: './User/login',
              },
              {
                path: '/User',
                redirect: '/User/login',
              },
              {
                name: 'register-result',
                icon: 'smile',
                path: '/User/register-result',
                component: './User/register-result',
              },
              {
                name: 'register',
                icon: 'smile',
                path: '/User/register',
                component: './User/register',
              },
              {
                component: '404',
              },
            ],
          },
          {
            path: '/',
            component: '../layouts/BasicLayout',
            Routes: ['src/pages/Authorized'],
            authority: ['admin', 'user'],
            routes: [
              {
                path: '/',
                redirect: '/dashboard/workplace',
              },
              {
                path: '/dashboard/workplace',
                name: 'workplace',
                icon: 'dashboard',
                component: './dashboard/workplace',
              },
              {
                path: '/notification',
                icon: 'notification',
                name: '我的通知',
                routes: [
                  {
                    name: '通知列表',
                    path: '/notification/list',
                    component: './StudentNotification/NotificationList',
                  },
                  {
                    hideInMenu: true, // 隐藏通知详情页面
                    name: '通知详情',
                    icon: 'notification',
                    path: '/notification/list/detail',
                    component: './StudentNotification/NotificationDetail',
                  },
                ],
              },
              {
                path: '/cluster',
                icon: 'cluster',
                name: '学生分群',
                routes: [
                  {
                    name: '分群（个人）',
                    icon: 'cluster',
                    path: '/cluster/onebyone',
                    component: './StudentCluster/ClusterByOne',
                  },
                  {
                    name: '分群（分组）',
                    icon: 'cluster',
                    path: '/cluster/ClusterByGroup',
                    component: './StudentCluster/ClusterByGroup',
                  },
                  {
                    name: '分群列表',
                    icon: 'cluster',
                    path: '/cluster/list',
                    component: './StudentCluster/ClusterList',
                  },
                ],
              },
              {
                path: '/activityInfo/activityDetails',
                icon: 'TeamOutlined',
                name: '校园活动',
                component: './activityInfo/activityDetails',
              },
              {
                path: '/activityInfo/activityList',
                icon: 'TeamOutlined',
                name: '校园活动',
                component: './activityInfo/activityList',
              },
              {
                path: '/activityInfoTeacher/activityDetails',
                icon: 'TeamOutlined',
                name: '校园活动',
                component: './activityInfoTeacher/activityDetails',
              },
              {
                path: '/activityInfoTeacher/activityList',
                icon: 'TeamOutlined',
                name: '校园活动',
                component: './activityInfoTeacher/activityList',
              },
              {
                path: '/Counsellor',
                icon: 'notification',
                name: '通知发布',
                routes: [
                  {
                    name: '通知列表',
                    icon: 'smile',
                    path: '/Counsellor/components/messageList',
                    component: './Counsellor/components/messageList',
                  },
                  // {
                  //   name: 'newMessage',
                  //   icon: 'smile',
                  //   path: '/Counsellor/components/newMessage',
                  //   component: './Counsellor/components/newMessage',
                  // },
                ],
              },
              {
                path: '/Study',
                icon: 'FundOutlined',
                name: '学业详情',
                routes: [
                  {
                    name: '第一课堂',
                    icon: 'smile',
                    path: '/Study/components/messageList',
                    component: './Study/components/messageList',
                  },
                  {
                    name: '第二课堂',
                    icon: 'smile',
                    path: '/Study/components/message2List',
                    component: './Study/components/message2List',
                  },
                ],
              },
              {
                path: '/Achievement',
                icon: 'BulbOutlined',
                name: '科研成果',
                routes: [
                  {
                    name: '论文列表',
                    icon: 'smile',
                    path: '/Achievement/components/messageList',
                    component: './Achievement/components/messageList',
                  },
                  {
                    name: '软著列表',
                    icon: 'smile',
                    path: '/Achievement/components/message2List',
                    component: './Achievement/components/message2List',
                  },
                  {
                    name: '竞赛列表',
                    icon: 'smile',
                    path: '/Achievement/components/message3List',
                    component: './Achievement/components/message3List',
                  },
                ],
              },
              {
                path: '/CharacterAnalysis',
                icon: 'FormOutlined',
                name: '个人测试',
                routes: [
                  {
                    name: '性格测试',
                    icon: 'smile',
                    path: '/CharacterAnalysis/components/messageList',
                    component: './CharacterAnalysis/components/messageList',
                  },
                  {
                    name: '学生性格测试',
                    icon: 'smile',
                    path: '/CharacterAnalysis/components/CharacterAnalysis',
                    component: './CharacterAnalysis/components/CharacterAnalysis',
                  },
                  {
                    name: '教师性格分析',
                    icon: 'smile',
                    path: '/CharacterAnalysis/components/CharacterAnalysisTeacher',
                    component: './CharacterAnalysis/components/CharacterAnalysisTeacher',
                  },
                  // {
                  //   name: 'newMessage',
                  //   icon: 'smile',
                  //   path: '/Counsellor/components/newMessage',
                  //   component: './Counsellor/components/newMessage',
                  // },
                ],
              },
              {
                path: '/Graduation',
                icon: 'RocketOutlined',
                name: '未来规划',
                routes: [
                  {
                    name: '毕业意向',
                    icon: 'smile',
                    path: '/Graduation/components/messageList',
                    component: './Graduation/components/messageList',
                  },
                  {
                    name: '招聘信息',
                    icon: 'smile',
                    path: '/Graduation/components/message2List',
                    component: './Graduation/components/message2List',
                  },
                ],
              },
              {
                path: '/StudentMessage',
                icon: 'RocketOutlined',
                name: '学生管理',
                routes: [
                  {
                    name: '学生信息',
                    icon: 'ContactsOutlined',
                    path: '/StudentMessage',
                    component: './StudentMessage',
                  },
                  {
                    name: '招聘信息',
                    icon: 'smile',
                    path: '/StudentMessage/StudentInfoDetail',
                    component: './StudentMessage/StudentInfoDetail',
                  },
                ],
              },

              {
                hideInMenu: true,
                name: 'success',
                icon: 'smile',
                path: '/result/success',
                component: './result/success',
              },
              {
                hideInMenu: true,
                name: 'fail',
                icon: 'smile',
                path: '/result/fail',
                component: './result/fail',
              },
              {
                hideInMenu: true,
                name: '403',
                icon: 'smile',
                path: '/exception/403',
                component: './exception/403',
              },
              {
                hideInMenu: true,
                name: '404',
                icon: 'smile',
                path: '/exception/404',
                component: './exception/404',
              },
              {
                hideInMenu: true,
                name: '500',
                icon: 'smile',
                path: '/exception/500',
                component: './exception/500',
              },
              {
                name: 'account',
                icon: 'user',
                path: '/account',
                routes: [
                  {
                    path: '/',
                    redirect: '/account/center',
                  },
                  {
                    name: 'center',
                    path: '/account/center',
                    component: './account/center',
                  },
                  {
                    name: 'settings',
                    path: '/account/settings',
                    component: './account/settings',
                  },
                  {
                    name: 'registerandPay',
                    path: '/account/registerandPay',
                    component: './account/registerandPay',
                  },
                  {
                    name: 'baseinfo',
                    path: '/account/baseinfo',
                    component: './account/baseinfo',
                  },
                ],
              },
              {
                component: '404',
              },
            ],
          },
        ],
      },
    ],
  },
];
